package com.ruoyi.system.service.impl;

import java.math.BigDecimal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.domain.JxPayment;
import com.ruoyi.system.mapper.JxPaymentMapper;
import com.ruoyi.system.service.IJxPaymentService;

@Service
public class JxPaymentServiceImpl implements IJxPaymentService {

    @Autowired
    private JxPaymentMapper mapper;

    @Override
    public JxPayment selectById(Long id) { return mapper.selectById(id); }

    @Override
    public List<JxPayment> selectList(JxPayment query) { return mapper.selectList(query); }

    @Override
    public int insert(JxPayment e) { return mapper.insert(e); }

    @Override
    public int update(JxPayment e) { return mapper.update(e); }

    @Override
    public int deleteByIds(Long[] ids) { return mapper.deleteByIds(ids); }

    @Override
    public BigDecimal sumPaidByStudent(Long studentId) { return mapper.sumPaidByStudent(studentId); }
}


